package HUZ_FileIO;

import java.io.*;

public class demo7 {
    public static void main(String[] args) throws IOException {
        File file=new File("E:\\Java网络通信程序\\TestDemo1\\fileA.txt");
        OutputStream outputStream=new FileOutputStream(file);
        BufferedOutputStream bufferedOutputStream=new BufferedOutputStream(outputStream);


        String text="hello i am GGB,so why to do it";
        char []context=text.toCharArray();


        bufferedOutputStream.write(text.getBytes());
        bufferedOutputStream.flush();

    }
}
